/* 标题样式 */
h1, .h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2, .h2 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

h3, .h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0;
}

h4, .h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

h5, .h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

h6, .h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* 正文样式 */
p, .body {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.body-sm {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* 强调文本 */
.caption {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--vp-text-secondary);
}

.overline {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--vp-text-secondary);
}

/* 链接样式 */
a {
  color: var(--vp-primary);
  text-decoration: none;
  transition: color var(--vp-duration-fast) ease;
}

a:hover {
  color: var(--vp-primary-hover);
}

/* 特殊文本样式 */
.gradient-text {
  background: linear-gradient(90deg, var(--vp-primary), var(--vp-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-muted {
  color: var(--vp-text-muted);
}

.text-secondary {
  color: var(--vp-text-secondary);
}

.text-primary {
  color: var(--vp-primary);
}

.text-success {
  color: var(--vp-success);
}

.text-warning {
  color: var(--vp-warning);
}

.text-danger {
  color: var(--vp-danger);
}

.text-info {
  color: var(--vp-info);
}

/* 文本截断 */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2.5rem;
  }
  
  h2, .h2 {
    font-size: 2rem;
  }
  
  h3, .h3 {
    font-size: 1.5rem;
  }
} 